Skip to content

Move to Psalm 7; declare Tested up to only in readme.txt - #149

Merged
PDowney merged 2 commits into
mainfrom
psalm-7
Nov 14, 2026
Merged

PDowney merged 2 commits into
mainfrom
psalm-7

Conversation

@PDowney

@PDowney PDowney commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Moves static analysis to Psalm 7 and fixes the WordPress plugin check, which has failed on main since Plugin Check began refusing "Tested up to" in the plugin header. Replaces Dependabot's #145, which failed Psalm; php-cs-fixer, PHPStan, Rector, and sebastian/version from that group are updated here too.

  • Psalm 7 (vimeo/psalm ^7.0, locked at 7.5.0). The plugin's own code needs no change. Psalm 7 rejects 31 docblocks in php-stubs/wordpress-stubs, so psalm.xml suppresses InvalidDocblock for that file only.
  • "Tested up to" only in readme.txt, as the site exporter already does. Plugin Check (plugin_header_tested_up_to_not_allowed) refuses it in the main plugin file. The scheduled WordPress version check updates readme.txt only, and its test expects that.
  • Changelog entries in CHANGELOG.md and readme.txt; the POT file's references are refreshed.

Testing

  • composer psalm, composer psalm:taint: no errors with Psalm 7.5.0.
  • composer phpstan, composer phpcs, composer phpmd, composer rector: clean. composer test: pass.
  • npm test: 10 pass. npm run lint:js, npm run lint:md: clean. ruff and mypy on the changed scripts: clean.
  • Not run locally: .github/scripts/test-automation.py and the WordPress plugin check run only in GitHub Actions.

🤖 Generated with Claude Code

vimeo/psalm ^7.0 (7.5.0), with php-cs-fixer, PHPStan, Rector, and
sebastian/version updated alongside. InvalidDocblock is not reported
for the WordPress stubs file, which Psalm 7 rejects in places.

Plugin Check refuses "Tested up to" in the plugin header, so it is
declared only in readme.txt, and the scheduled version check updates
readme.txt only (as the site exporter does).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added documentation Improvements or additions to documentation security dependencies Pull requests that update a dependency file automation testing core i18n labels Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Optimizations ACE MC!

Before we review:

  • Have you tested your changes with WordPress 7.0+?
  • Are your changes compatible with PHP 8.3+?
  • Have you followed WordPress coding standards?
  • Did you update the CHANGELOG.md if needed?

Security Reminder
This plugin changes WooCommerce, WP Store Locator, and WordPress admin screens, so please ensure:

  • All user input is properly sanitized
  • All output is properly escaped
  • No security vulnerabilities are introduced

We'll review your PR soon.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

The WordPress test job pins PHPUnit 9.6, and Psalm 7.4 and later
require psalm/plugin-phpunit, whose 1.x releases conflict with PHPUnit
below 11, so Composer could not resolve. The job does not run Psalm, so
it removes Psalm before pinning PHPUnit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PDowney
PDowney merged commit 549627e into main Nov 14, 2026
27 checks passed
@github-actions
github-actions Bot deleted the psalm-7 branch November 14, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation core dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation i18n security testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant